{template head}
<script type="text/javascript" src="{STATICDIR}third/plupload/plupload.full.min.js"></script>
<script type="text/javascript">
function submitcheck()
{
	return true;
}

function saveInfo()
{
	if(!submitcheck())
	{
		return;
	}
	var url = '{SITE_URL}ajax/index.php?m=savePingtai';
	
	var data = $('#savedata').serialize();
		
	var callback = function(data)
	{
		if(data.sign == -2)
		{
			window.location = data.url;
		}
		else
		{
			if(data.sign == 1)
			{
				//添加成功,返回列表页
				layer.alert(data.msg,function(){
					window.location = $('#gotoList').attr('href');
				});
			}
			else
			{
				if(data.msg)
				{
					layer.msg(data.msg);
				}
				else
				{
					layer.msg('操作失败');
				}
			}
		}
	};
	makeAjax('post',url,data,callback);
}

</script>
<body>
<div class="wrapper" style="max-width: 1500px;">
	<div class="crumbs"><span style="margin: 0 5px;color: #333;font-size: 14px;">平台管理</span> &gt;<a id="gotoList" href="{SITE_URL}index.php?a=pingtaiM&m=list">平台列表</a> &gt; <span>{$pingtai[pt_name]}</span><a style="float:right;font-size:13px;" href="javascript:history.go(-1);">返回</a></div>
	
	<div class="container_tit clearfix mb20 ft14">
		<h2 class="form_tit" style="margin-bottom: 0px">
			平台信息
		</h2>
		<div class="container_tit clearfix mb20 ft14" style="border-color:#000;border-top: 0px;">
			<div class="form_item clearfix" style="vertical-align:middle">
				<img id="img_logo" src="{OSS_URL}{$pingtai[pt_logo]}"  style="max-width: 150px;" /><span style="vertical-align:middle;font-size: 25px;font-weight: bold;">{$pingtai[pt_name]}</span>
				{if adminpermission('P','100000','100002')}
				<a style="float:right;" class="btnblue" href="{SITE_URL}index.php?a={$action}&m=edit&id={$pingtai[id]}">修改</a>
				{/if}
			</div>
			
			<div class="form_item clearfix" style="font-size: 16px;">
				<p class="clearfix">
					<span class="mr10" style="vertical-align: initial;">平台背景：<span style="font-weight: bold;">{php echo $PT_BJ[$pingtai['pt_bj']]}</span></span>
					<span class="mr10" style="vertical-align: initial;">银行存管：<span style="font-weight: bold;">{$pingtai[pt_yhcg]}</span></span>
					<span class="mr10" style="vertical-align: initial;">风险评级：<span style="font-weight: bold;">{$pingtai['pt_fxdj']}</span></span>
					<span class="mr10" style="vertical-align: initial;">预期年化：<span style="font-weight: bold;">{$pingtai[pt_yqnh]}</span></span>
					<span class="mr10" style="vertical-align: initial;">最高返利：<span style="font-weight: bold;">{$pingtai[pt_zgfl]}</span></span>
					<span class="mr10" style="vertical-align: initial;">上线时间：<span style="font-weight: bold;">{$pingtai[pt_sxsj]}</span></span>
					<span class="mr10" style="vertical-align: initial;">所在地：<span style="font-weight: bold;">{$pingtai[pt_szd]}</span></span>
				</p>
				<p class="clearfix" style="padding-top: 20px;">
					<span class="mr10" style="vertical-align: initial;">主营业务：<span style="font-weight: bold;">{$pingtai[pt_zyyw]}</span></span>
					<span class="mr10" style="vertical-align: initial;">提现费用：<span style="font-weight: bold;">{$pingtai[pt_txfy]}</span></span>
					<span class="mr10" style="vertical-align: initial;">利息管理费：<span style="font-weight: bold;">{$pingtai[pt_lxglf]}</span></span>
					<span class="mr10" style="vertical-align: initial;">债权转让：<span style="font-weight: bold;">{$pingtai[pt_zqzr]}</span></span>
					<span class="mr10" style="vertical-align: initial;">平台用户量级：<span style="font-weight: bold;">{$pingtai[pt_yhlj]}</span></span>
					<span class="mr10" style="vertical-align: initial;">成交额度：<span style="font-weight: bold;">{$pingtai[pt_cjed]}</span></span>
					<span class="mr10" style="vertical-align: initial;">注册方式：<span style="font-weight: bold;">{php echo $PT_FS[$pingtai['pt_zcfs']]}</span></span>
				</p>
			</div>
		</div>
		
		<h2 class="form_tit" style="margin-bottom: 0px">
			产品信息
			{if adminpermission('P','100000','100005')}
			<a style="float:right;font-size: 14px;" href="{SITE_URL}index.php?a={$action}&m=addCP&id={$pingtai[id]}" class="btnyellow mr15">添加产品</a>
			{/if}
		</h2>
		<div class="container_tit clearfix mb20 ft14" style="border-color:#000;border-top: 0px;">
			<!-- list -->
			<table class="table">
				<thead>
					<th width="">ID</th>
					<th width="">产品名称</th>
					<th width="">产品类型</th>
					<th width="">预期年化</th>
					<th width="">起投金额</th>
					<th width="">投资期限</th>
					<th width="">还款方式</th>
					<th width="">总收益</th>
					<th width="">利息</th>
		        	<th width="">返利</th>
		        	<th width="">红包</th>
		        	<th width="">返利时间</th>
		        	<th width="">债权转让</th>
		        	<th width="">起息日</th>
		        	<th width="">利息管理费</th>
		        	<th width="">状态</th>
				</thead>
				<tbody>
				<!--{loop $list $key $one}-->
					<tr>
						<td style="text-align: center;">{$one['id']}</td>
						<td style="text-align: center;">{$one['cp_mc']}</td>
						<td style="text-align: center;">{php echo $CP_LX[$one['cp_type']]}</td>
						<td style="text-align: center;">{$one['cp_yqnh']}</td>
						<td style="text-align: center;">{$one['cp_qtje']}</td>
						<td style="text-align: center;">
							{if $one['cp_tzqxlx'] == 'day'}
							{$one['cp_tzqx']}天
							{else}
							{$one['cp_tzqx']}月
							{/if}
						</td>
						<td style="text-align: center;">{$one['cp_hkfs']}</td>
						<td style="text-align: center;">{$one['cp_zsy']}</td>
						<td style="text-align: center;">{$one['cp_lx']}</td>
						<td style="text-align: center;">{$one['cp_fl']}</td>
						<td style="text-align: center;">{$one['cp_hb']}</td>
						<td style="text-align: center;">{$one['cp_flsj']}</td>
						<td style="text-align: center;">{$one['cp_zqzr']}</td>
						<td style="text-align: center;">{$one['cp_qxr']}</td>
						<td style="text-align: center;">{$one['cp_lxglf']}</td>
						<td style="text-align: center;">
							{if $one[cp_status] == 1}
								禁用
							{elseif $one[cp_status] == 2}
								启用
							{/if}
						</td>
					</tr>
				<!--{/loop}-->
				</tbody>
			</table>
		</div>
	</div>
	
	<!--{php pagenav($pageurl,$page,$pagetotal);}-->
{template foot}